<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>

</head>
<body>
    <!-- v-on绑定了事件，简写为@ -->
     <div id="app">
        <button v-on:click="pointMe">点击我</button>
        <button @click="pointyou">点击你</button>
     </div>
     <script>
        let vm=new Vue({
            el:"#app",
            data(){
                return{

                }
            },
            // 用于处理事件
            methods:{
pointMe(){
   alert("你点击到我了")
},
pointyou(){
    alert("你点击到你自己了")

}
            }
        })
     </script>
</body>
</html>